package com.sayimo.maker.mall.goods.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sayimo.framework.database.mybatis.AbstractMybatisBaseDao;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.mall.goods.dao.EnterpriseCommentDao;
import com.sayimo.maker.mall.goods.vo.EnterpriseComment;

/**
 * @Copyright (c) 2016 广东省尚一互联网有限公司
 * @Project: maker-mall
 * @ClassName: EnterpriseCommentInterfaceImplDao.java
 * @Description: 商家评论
 * @Author:	tanxin
 * @Date:2017年2月16日,下午3:01:07
 * @Version 1.0.0
 */
@Repository(value="enterpriseCommentDao")
public class EnterpriseCommentInterfaceImplDao extends AbstractMybatisBaseDao<EnterpriseComment>implements EnterpriseCommentDao{
	
	/**
	 * @Package com.sayimo.maker.mall.goods.dao.impl
	 * @Author TANXIN
	 * @MethodName:addEnterprisePointPraise
	 * @Description:商家点赞
	 * @param paramMap
	 * @return
	 * @throws DaoException
	 * @Date 2017年2月16日,下午2:13:16
	 */
	@Override
	public Integer addEnterprisePointPraise(Map<String, Object> paramMap) throws DaoException {
		return mybatisInterfaceBaseDao.update("com.sayimo.maker.mall.goods.dao.EnterpriseCommentDao.addEnterprisePointPraise",paramMap);
	}
	/**
	 * @Package com.sayimo.maker.mall.goods.dao.impl
	 * @Author TANXIN
	 * @MethodName:addEnterpriseComment
	 * @Description:添加商家评论
	 * @param enterpriseComment
	 * @return
	 * @throws DaoException
	 * @Date 2017年2月16日,下午3:00:01
	 */
	public Integer addEnterpriseComment(EnterpriseComment enterpriseComment) throws DaoException {
		return this.mybatisInterfaceBaseDao.insert("com.sayimo.maker.mall.goods.dao.EnterpriseCommentDao.addEnterpriseComment", enterpriseComment);
	}
	/**
	 * @Package com.sayimo.maker.mall.goods.dao.impl
	 * @Author TANXIN
	 * @MethodName:queryEnterpriseComment
	 * @Description:查询商家评论
	 * @param paramMap
	 * @return
	 * @throws DaoException
	 * @Date 2017年2月16日,下午3:00:30
	 */
	public List queryEnterpriseComment(Map<String, Object> paramMap) throws DaoException {
		return this.mybatisInterfaceBaseDao.queryObject("com.sayimo.maker.mall.goods.dao.EnterpriseCommentDao.queryEnterpriseComment",paramMap);
	}
}
